package com.sks.bean.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * PayType entity. @author MyEclipse Persistence Tools
 */
@Entity
@JsonIgnoreProperties(value={"hibernateLazyInitializer"}) 
@Table(name = "pay_type", uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class PayType implements java.io.Serializable {

	// Fields

	private Integer payTypeId;
	private String name;
	private Integer type;

	// Constructors

	/** default constructor */
	public PayType() {
	}

	/** full constructor */
	public PayType(String name, Integer type) {
		this.name = name;
		this.type = type;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "payTypeId", unique = true, nullable = false)
	public Integer getPayTypeId() {
		return this.payTypeId;
	}

	public void setPayTypeId(Integer payTypeId) {
		this.payTypeId = payTypeId;
	}

	@Column(name = "name", unique = true, nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "type", nullable = false)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}